import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;


public class JUnitClientConnection {

	private ClientMessage  climes;
	private Order or;	
	private String error;
	
	@Before
	public void setUp() {
		error="No error"
		or = createBuyOrder("Joana", "Google", 50, 15);
		climes = new ClientMessage(Type.ORDER, or, error);
	}

	@Test
	public void test() {
		assertEquals(climes.getType,Type.ORDER);
		assertEquals(climes.getOrder,or);
		assertEquals(climes.getError, error);
	}
}
